home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / funny_te.swf / scripts / DefineSprite_37 / frame_1 / DoAction.as
Encoding:
Text File  |  2010-11-09  |  982 b   |  69 lines

  1. num = _root.score.text;
  2. if(num < 100)
  3. {
  4.    with(_root.score.hundred)
  5.    {
  6.       gotoAndStop(1);
  7.    }
  8. }
  9. setProperty(_root.score.bone, _Y, -56 - 0.48 * num);
  10. if(num >= 400)
  11. {
  12.    stop();
  13.    tellTarget(_root.action)
  14.    {
  15.       stop();
  16.    }
  17. }
  18. if(num >= 100)
  19. {
  20.    num1 = num / 100;
  21.    if(0 < num1)
  22.    {
  23.       with(_root.score.hundred)
  24.       {
  25.          gotoAndStop(num1 + 1);
  26.       }
  27.    }
  28.    else
  29.    {
  30.       with(_root.score.hundred)
  31.       {
  32.          gotoAndStop(1);
  33.       }
  34.    }
  35.    num2 = num % 100 / 10;
  36.    if(0 < num2)
  37.    {
  38.       with(_root.score.ten)
  39.       {
  40.          gotoAndStop(num2 + 1);
  41.       }
  42.    }
  43.    else
  44.    {
  45.       with(_root.score.ten)
  46.       {
  47.          gotoAndStop(1);
  48.       }
  49.    }
  50. }
  51. else
  52. {
  53.    num3 = num / 10;
  54.    if(0 < num3)
  55.    {
  56.       with(_root.score.ten)
  57.       {
  58.          gotoAndStop(num3 + 1);
  59.       }
  60.    }
  61.    else
  62.    {
  63.       tellTarget(_root.score.ten)
  64.       {
  65.          gotoAndStop(1);
  66.       }
  67.    }
  68. }
  69.